package com.oss.vo;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

@Entity(name="sys_user")
public class SysUser extends BaseEntity{
	@Id
	@Column(name="login_name")
	private String loginName;
	@Column(name="pwd")
	private String pwd;
	@Column(name="app_Name")
	private String appName;
	@Column(name="app_path")
	private String appPath;
	@Column(name="bucket")
	private String bucket;
	@Column(name="endpoint")
	private String endpoint;
	@Column(name="department")
	private String department;
	@Column(name="flow_limit")
	private long flowLimit;
	
	@OneToMany(fetch=FetchType.EAGER)
    @JoinColumn(name="login_name")
	private List<UserAuth> auths;
	
	
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getAppPath() {
		return appPath;
	}
	public void setAppPath(String appPath) {
		this.appPath = appPath;
	}
	public String getBucket() {
		return bucket;
	}
	
	public void setBucket(String bucket) {
		this.bucket = bucket;
	}
	public String getEndpoint() {
		return endpoint;
	}
	public void setEndpoint(String endpoint) {
		this.endpoint = endpoint;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public List<UserAuth> getAuths() {
		return auths;
	}
	public void setAuths(List<UserAuth> auths) {
		this.auths = auths;
	}
	public long getFlowLimit() {
		return flowLimit;
	}
	public void setFlowLimit(long flowLimit) {
		this.flowLimit = flowLimit;
	}
	
	
}
